r14248: Fix Coverity bug # 84
authorVolker Lendecke <vlendec@samba.org>
Sun, 12 Mar 2006 17:57:05 +0000 (17:57 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:15:20 +0000 (11:15 -0500)
source/client/clitar.c

index 90d06cc94e902fb55ede5fda2b90796727c88dfc..306848bc0cd295d8878943a9f646162d94937d4f 100644 (file)
@@ -1724,6 +1724,7 @@ int tar_parseargs(int argc, char *argv[], const char *Optarg, int Optind)
 
                        if ((tmpstr = (char *)SMB_MALLOC(strlen(cliplist[clipcount])+1)) == NULL) {
                                DEBUG(0, ("Could not allocate space for a cliplist item, # %i\n", clipcount));
+                               SAFE_FREE(tmplist);
                                return 0;
                        }