X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=string.c;h=2825cdca798d7366277768c522cfdc62ff5d315a;hb=f4edf7aa55a79ba35d9c93344280cdae19b5e7f8;hp=8d1a738b5865fa9d414fe9f2ec7ec05df67700bd;hpb=31aed0af96ade20b74753b820d5a037a72204a10;p=adu.git diff --git a/string.c b/string.c index 8d1a738..2825cdc 100644 --- a/string.c +++ b/string.c @@ -318,10 +318,12 @@ int parse_uid_arg(const char *orig_arg, struct uid_range **ur) if (ret < 0) break; } + free(argv); free(arg); if (ret < 0) { free(*ur); *ur = NULL; + return ret; } /* an empty range indicates the end of the list */ (*ur)[n].low = 1;