Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 1950c9bf authored by deuce's avatar deuce

Free pointer before re-using it as a temp variable.

parent 83f5e1b3
......@@ -169,6 +169,7 @@ static void js_simple_asn1(unsigned char *data, size_t len, JSContext *cx, JSObj
return;
}
b64_encode(e64, sz*4/3+3, e, sz);
free(e);
for (e=e64; *e; e++) {
if (*e == '+')
*e = '-';
......@@ -177,7 +178,6 @@ static void js_simple_asn1(unsigned char *data, size_t len, JSContext *cx, JSObj
else if (*e == '=')
*e = 0;
}
free(e);
obj=JS_NewObject(cx, NULL, NULL, parent);
JS_DefineProperty(cx, parent, "public_key", OBJECT_TO_JSVAL(obj), NULL, NULL, JSPROP_ENUMERATE|JSPROP_READONLY);
nstr=JS_NewStringCopyZ(cx, n64);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment