pseudomap: fix bug in pseudomap_remove
This commit is contained in:
parent
1cd92e5ecb
commit
2508c1a5e6
@ -81,6 +81,7 @@ int pseudomap_remove(pseudomap *o, const char *key) {
|
|||||||
e = sblist_get(o, i);
|
e = sblist_get(o, i);
|
||||||
free(e->key);
|
free(e->key);
|
||||||
free(e->value);
|
free(e->value);
|
||||||
|
sblist_delete(o, i);
|
||||||
ret = 1;
|
ret = 1;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user