Fix crashes related to sdb

This commit is contained in:
pancake 2014-08-28 22:35:34 +02:00
parent bf98a3c531
commit 24e6111f1e
2 changed files with 2 additions and 2 deletions

View File

@ -658,7 +658,7 @@ R_API RCore *r_core_fini(RCore *c) {
r_anal_free (c->anal);
r_asm_free (c->assembler);
r_print_free (c->print);
r_bin_free (c->bin);
// r_bin_free (c->bin); // XXX segfaults rabin2 -c
//r_lang_free (c->lang); // XXX segfaults
r_debug_free (c->dbg);
r_config_free (c->config);

View File

@ -141,7 +141,7 @@ static void walk_namespace (StrBuf *sb, char *root, int left, char *p, SdbNs *ns
SDB_API char *sdb_querys (Sdb *r, char *buf, size_t len, const char *_cmd) {
int i, d, ok, w, alength, bufset = 0, is_ref = 0, encode = 0;
char *eq, *tmp, *json, *next, *quot, *arroba, *res, *cmd, *newcmd;
char *eq, *tmp, *json, *next, *quot, *arroba, *res, *cmd, *newcmd = NULL;
const char *p, *q, *val = NULL;
StrBuf *out;
Sdb *s = r;