Browse code

cwu_cid#_11396:fix cid#11396

Carl Wu authored on 2013/02/20 23:16:38
Showing 1 changed files
... ...
@@ -1138,6 +1138,7 @@ static int cvdinfo(const struct optstruct *opts)
1138 1138
 
1139 1139
     pt = strchr(cvd->time, '-');
1140 1140
     if(!pt){
1141
+        free(cvd);
1141 1142
         return -1;
1142 1143
     }
1143 1144
     *pt = ':';