1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-12-15 07:13:20 +00:00

fix: memory cleanup

This commit is contained in:
2024-10-31 23:00:40 +01:00
parent 3274b728c3
commit e053c212df
4 changed files with 10 additions and 12 deletions

View File

@@ -21,16 +21,13 @@
#include "deob.h"
void deob(char *in) {
char *d = malloc(LD*sizeof(char));
const long long s[2] = {S0, S1};
char d[] = "OSTAR.password$OSB";
for (size_t i = 0; i < DL; i++) d[i] = (CS)[i];
for (size_t i = 0; i < LD; i++) d[i] = (CS)[i];
size_t l = strlen(in) / 2;
for (size_t i = 0; i < l; i++) {
for (size_t j = 0; j < DL; j++) {
DLT(0);
DLT(1);
}
for (size_t j = 0; j < LD; j++) { DLT(0); DLT(1); }
DLS(i);
}
INZ(l);
INZ(l); F(d);
}