You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Realloc here might return NULL and thus NULLify vector while losing the reference to original object. I believe something like the following should be done:
char**new_vector=s_realloc(vector,((*argc)+1)*sizeof(char*));
if (new_vector==NULL) goto err;
vector=new_vector;
vector[*argc] =current;
The text was updated successfully, but these errors were encountered:
There's a possible memleak and NULL ptr usage in sds.c:40 in
sdssplitargs
:Realloc here might return NULL and thus NULLify
vector
while losing the reference to original object. I believe something like the following should be done:The text was updated successfully, but these errors were encountered: