]> git.saurik.com Git - apple/libinfo.git/blobdiff - nis.subproj/yp_all.c
Libinfo-503.tar.gz
[apple/libinfo.git] / nis.subproj / yp_all.c
index e08a981c4738494fcdc52852e3e33fbc6151cfec..645df97e4dc3f206e01d833044087e1b5f9376db 100644 (file)
@@ -120,8 +120,11 @@ u_long *objp;
                        }
                        xdr_free((xdrproc_t)xdr_ypresp_all, (char *)&out);
 
-                       if (key == NULL || val == NULL)
+                       if (key == NULL || val == NULL) {
+                               free(key);
+                               free(val);
                                return FALSE;
+                       }
 
                        r = (*ypresp_allfn)(status, key,
                            out.ypresp_all_u.val.key.keydat_len, val,